package com.edu.account.service;

import com.edu.account.entity.TAccount;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dingchengyu
 * @since 2022-05-13
 */
public interface ITAccountService extends IService<TAccount> {
    /**
     * 扣减账户
     * @param userId
     * @param money
     * @return
     */
    Long deductAccount(Long userId, Long money);
}
